<ResourceDictionary  
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:System="clr-namespace:System;assembly=mscorlib" 
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 

    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">

    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0" x:Key="UiGridBorderBackground">
        <GradientStop Color="#FF605F5F" Offset="0"/>
        <GradientStop Color="#FF474545" Offset="1"/>
        <GradientStop Color="#FF474646" Offset="0.51"/>
    </LinearGradientBrush>


    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0" x:Key="EditeMapBorderBackground">
        <GradientStop Color="#FF8B8B8B" Offset="0"/>
        <GradientStop Color="#FF8F8F8F" Offset="1"/>
        <GradientStop Color="#FF767676" Offset="0.51"/>
    </LinearGradientBrush>

    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0" x:Key="deviceGridBorderground">
        <GradientStop Color="#FF5C5C5C"/>
        <GradientStop Color="#FF414141" Offset="1"/>
        <GradientStop Color="#FF3B3B3B" Offset="0.494"/>
    </LinearGradientBrush>
    

    <Style x:Key="UiGrid" TargetType="{x:Type ContentControl}">
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="{x:Type ContentControl}">
                    <Border CornerRadius="5" Background="{StaticResource UiGridBorderBackground}">
						<ContentPresenter/>
						</Border>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
    <Style x:Key="EditeMap" TargetType="{x:Type ContentControl}">
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="{x:Type ContentControl}">
                    <Border CornerRadius="5" Background="{StaticResource EditeMapBorderBackground}">
							<ContentPresenter Margin="3"/>
						</Border>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
    <Style x:Key="deviceGrid" TargetType="{x:Type ContentControl}">
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type ContentControl}">
                    <Border CornerRadius="5" Margin="0,0,0,0" Background="{StaticResource deviceGridBorderground}">
						<Grid>				
						<ContentControl Content="{TemplateBinding Content}"></ContentControl>
						</Grid>
					</Border>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
</Style>
</ResourceDictionary>